From: YAMAMOTO Mitsuharu Date: Tue, 7 Aug 2007 08:55:34 +0000 (+0000) Subject: (main) [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~17487 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a161fb8f9aca7398e17275e614db54c1e9ba9d05;p=emacs.git (main) [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: Call malloc_enable_thread on interactive startup. --- diff --git a/src/emacs.c b/src/emacs.c index 6c7773770d7..d67c97a5f6e 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1163,6 +1163,13 @@ main (argc, argv #if defined (USG5) && defined (INTERRUPT_INPUT) setpgrp (); #endif +#endif +#if defined (HAVE_GTK_AND_PTHREAD) && !defined (SYSTEM_MALLOC) && !defined (DOUG_LEA_MALLOC) + { + extern void malloc_enable_thread P_ ((void)); + + malloc_enable_thread (); + } #endif }